

CROSS=

CC=$(CROSS)gcc
CPP=$(CROSS)g++
STRIP=$(CROSS)strip

OUT=yatun

OBJS=main.o ConfigParser.o c_Plug_IO.o IO_TCP.o IO_Tun.o IO_UDP.o llist.o SchedQueue.o YatunTunnel.o server.o client.o

DEFS=
LIBS=
INCLUDES=


CFLAGS+= -Wall -pedantic -g

all: $(OUT) 
	@echo "Finished building ... `date`"


client: $(OUT)

$(OUT): $(OBJS)
	$(CPP) $(CFLAGS) $(OBJS) $(LIBS) -o  $@ 


%.o:	%.cpp
	$(CPP) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<

%.o:	%.c
	$(CPP) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<

clean:
	rm -f $(OUT) 
	rm *.o 

strip: $(OUT)
	$(STRIP) ./$(OUT)
